package com.wecode.core.constant;

/**
 * 错误码
 *
 * @Author: zhenzhong.wang@honeywell.com
 * @Date: 2018/12/11 10:12 PM
 */
public class ErrorConstant {

  public static final ErrorConstant SERVER_ERROR = new ErrorConstant(50000, "服务器异常");
  public static final ErrorConstant LACK_PARAMETER = new ErrorConstant(50001, "参数缺失");
  public static final ErrorConstant PERMISSION_NOT_EMPTY = new ErrorConstant(50003, "没有权限");

  private int code;
  private String msg;

  public ErrorConstant(int code, String msg) {
    this.code = code;
    this.msg = msg;
  }

  public int getCode() {
    return code;
  }

  public String getMsg() {
    return msg;
  }
}
